package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdDynamicGroupEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdDynamicGroupCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdDynamicGroupUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdDynamicGroupSearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdDynamicGroupOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdDynamicGroupResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdDynamicGroupRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdDynamicGroupConverter;
import com.lion.ball.modules.orderfood.service.def.OfdDynamicGroupService;
import com.lion.ball.modules.orderfood.web.api.OfdDynamicGroupApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 动态分组 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/dynamic/group")
public class OfdDynamicGroupController implements OfdDynamicGroupApi, BaseCrudController<
        OfdDynamicGroupEntity,
        OfdDynamicGroupCreateParam,
        OfdDynamicGroupUpdateParam,
        OfdDynamicGroupSearchParam,
        OfdDynamicGroupOrderParam,
        OfdDynamicGroupResult,
        OfdDynamicGroupRepository,
        OfdDynamicGroupConverter,
        OfdDynamicGroupService
        > {

    @Autowired
    OfdDynamicGroupService ofdDynamicGroupService;

    @Override
    public OfdDynamicGroupService getService() {
        return ofdDynamicGroupService;
    }
}